#include"ex1.cpp"
#include<iostream>
using namespace std;


int main()
{
int n,i;
double real,imag,d,sreal=0.0,simag=0.0;
std::cout<<"\nnr de incrementat=";
std::cin>>d;
std::cout<<"introduceti n=";
std::cin>>n;
Complex c[n];
Complex s=Complex();
for(i=0;i<n;i++)
{
std::cout<<"\nc["<<i<<"].real=";
std::cin>>real;
std::cout<<"    c["<<i<<"].imag=";
std::cin>>imag;
c[i]=Complex(real,imag);
s=s+c[i];
}
std::cout<<"Suma nr complexe este: "<<s;
std::cout<<"\nSirul incrementat este";
for(i=0;i<n;i++)
{
c[i]=c[i]+d;
std::cout<<"\n"<<c[i]<<endl;
}
return 0;

}
